Note: This tutorial assumes that you have completed the previous tutorials: ROS NetworkSetup and ROS EnvironmentVariables.
(!) Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags.

Network configuration for Roch

Description: How to configure Network for Roch

Tutorial Level: BEGINNER

This tutorial assume you have completed finish tutorial ROS NetworkSetup and ROS EnvironmentVariables.

In this section, we just need to configure ROS_MASTER_URI and ROS_HOSTNAME correctly to ensure the ros communication channels can find each other.

Jeston Board Network

This is network configuration for Jeston Board Network.

Configure IP addresses

Because Roch have own PC, so the configuration is done before shipment. Roch using WIFI, and with IP address is 192.168.1.100 by default, also you can change. With password on Roch board is ubuntu, also the same with root on Roch board.

  1. Find WIFI on Roch with name Roch, connect using password rochsyrobot.

  2. Checkout your IP addresses in WIFI:
    ifconfig

For examlple:

  • wlan0     Link encap:Ethernet  HWaddr ...
              inet addr:192.168.1.109  Bcast:192.168.0.255  Mask:255.255.255.0
              inet6 addr: ... Scope:...
              UP BROADCAST RUNNING MULTICAST  MTU:...  Metric:..
              RX packets:... errors:0 dropped:0 overruns:0 frame:...
              TX packets:... errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:... (1.9 MB)  TX bytes:... (324.6 KB)
              Interrupt:17 

so, your ip addresses is 192.168.1.109.

  1. Just need configure you own PC is enough. Open your computer and open ~/.bashrc using your favorite editor such as gedit:

    export ROS_HOSTNAME=<your_own_ip_in_wifi>
    export ROS_MASTER_URI=http://192.168.1.100:11311

For example:

  • export ROS_HOSTNAME=192.168.1.109
    export ROS_MASTER_URI=http://192.168.1.100:11311

Now, configuration is done.

Test Connection

For now, you can using steps following for test:

  1. On your PC, using following command:
    ssh ubuntu@192.168.1.100
  2. You will get message that need put password if you have a strong connection with Roch.

PC Network

In this section, we need two PC, one is for Roch, another is for your workstation.

We called one PC Roch, another is PC.

Roch configuration

This is easy configure on PC with WIFI. Just need open one Hotspot.

You can choose WIFI name, password and so on which you like.

After you configure your Roch. You can test using preceding way.

More Configuration

About more configuration see:

Wiki: roch/Tutorials/Network configuration for Roch (last edited 2017-03-01 09:23:38 by SawYer)